package com.zj.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zj.dto.TotalInfo;
import com.zj.entity.*;

import java.util.List;

public interface AdminService {
    List<UserInfo> getUserByNumOrNameOrAdd(String queryKey);
    TotalInfo getTotalInfo();
    IPage<Goods> selectGoodsByNameOrDescriptionOrUserName(String queryKey,int current,int size);
    IPage<UserInfo> selectUserByNameOrNumOrAddress(String queryKey,int current,int size);
    int deleteUserById(String[] id);
    int deleteGoodsById(String[] id);
    int updateGoodsById(Goods goods);
    int updateUserById(User user);
    int updateUserInfoById(UserInfo userInfo);
    int addGoodsAdmin(Goods goods);
    int addUserAdmin(User user);
    int addUserInfoAdmin(UserInfo userInfo);
    List<GoodsCategory> getGoodsCategory();
    int updateGoodsCategory(GoodsCategory goodsCategory);
    int addGoodsCategoryByCid(GoodsCategory goodsCategory);
    int deleteGoodsCategoryById(int id);
    int addGoodsCategoryOneLevel(GoodsCategory goodsCategory);
    List<Address> getAddress();
    int updateAddress(Address address);
    int addAddressByCid(Address address);
    int deleteAddressById(int id);
    int addAddressOneLevel(Address address);

}
